/**
 * Business Service Interface to handle communication between web and
 * persistence layer.
 *
 * <p><a href="RoleManager.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler </a>
 */
package com.carsite.service;

import java.util.List;

import com.carsite.dao.RoleDao;
import com.carsite.model.QueryMap;
import com.carsite.model.Role;

public interface RoleManager {


    public void setRoleDao(RoleDao dao);

    public List getRoles(Role role);

    public Role getRole(String rolename);

    public void saveRole(Role role);

    public void removeRole(String rolename);
    
    
    //added
    public Role getRole(Long  roleId);
    public void removeRole(Long id);
    public List getRoleByCondition(String roleCondition);

	/**
	 * @param levelStr
	 * @return
	 */
	public List getRolesByLevel(String levelStr);

	/**
	 * @param queryMap
	 * @return
	 */
	public List getRoleByConditions(QueryMap queryMap);
}
